package Data;

public class Manager extends Record{

	
	private int password;
	
	public Manager(){
		
	}
	public Manager(int ID,int password){
		this.ID=ID;
		this.password = password;
		
	}
	
	
	
	public int getpassword() {
		return password;
	}

	@Override
	public String toString() {
		return ID+","+password;
	}
	public static Record toObject(String managerData){
		String[] temp = managerData.split(",");
		Manager one = new Manager(Integer.parseInt(temp[0]),Integer.parseInt(temp[1]));
		return one;
	}
	
}